<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>用户权限编辑</title>
<link rel="stylesheet" type="text/css" href="<c:url value="/styles/sample.css"/>"/>
</head>
<body>
<div id="box">
        <div class="title">Apache Shiro Sample App - Edit Permission</div>

        <div class="content">
        	<!-- 这里没有声明action ,默认是转向到这个页面的action地址，也就是原路径提交 -->
            <form:form modelAttribute="editPermissionCommand">

                <form:errors path="*" element="div" cssClass="errors"/>
                <div><div class="form-label">realm:</div><form:input path="realm"/></div>
                <div><input type="button" onclick="document.location.href='<c:url value="/managePermissions"/>'" value="Cancel"/>&nbsp;<input type="submit" value="Save Changes"/></div>
            </form:form>
        </div>

    </div>
</body>
</html>